{% extends "base.html" %}
{% load utils %}
{% block content %}
<div id="content-header">
	<h2>{% if edit %}编辑成员{%else%}增加成员{%endif%}</h2>
	<div class="clear"></div>
</div>

<form class="member-form" method="post" action=".">
	{% if edit %}
	<div class="form-row">
		<label>用户邮箱</label>
		<span>{{ member.user.email }}</span>
	</div>
	{% endif %}
	{% render_form form %}
	<div class="form-buttons">
		<button type="submit">{% if edit %}更新{%else%}增加{%endif%}</button>
		<a href="/sa/{{ account.id }}/edit/">取消</a>
	</div>
</form>
{% endblock %}
